export default {
  render(h) {
    const { routeMap, data } = this.$router;
    if (routeMap && data && data.current) {
      const iterator = routeMap[data.current];
      return iterator
        ? h(iterator.component) :
        h('div', '当前组件未找到，请检查路由代码');
    }
  }
};
